package com.mach.platform.domain.iot;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import javax.naming.event.NamingListener;
import javax.persistence.*;
import java.io.Serializable;

/**
 * @author Administrator
 * @Description:
 * @Package: com.mach.platform.domain.iot
 * @time 2018/11/29 0029 16:50
 */
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler" })
@Entity
@Table(name = "iot_dev_prop")
@Data
public class IotDevParams implements Serializable {

	private static final long serialVersionUID = -4752973582137309586L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;

	/**
	 * 参数名称/标志
	 */
	private String name;

	/**
	 * 显示属性
	 */
	private String label;

	/**
	 * 数值
	 */
	private double value;

	/**
	 * 文本值
	 */
	@Column(name = "text_value")
	private String textValue;

	/**
	 * 参数备注
	 */
	private String remark;

	/**
	 * 设备id
	 */
	@Column(name = "dev_id")
	private Integer devId;

}
